import request from "@/utils/request";

/**
 * 查询客资状态
 * @param {*} data
 */
export function getAllKzStatus(params) {
  return request({
    url: "/getAllKzSubStatus",
    method: "get",
    params,
  });
}
// 查询所有的客资
export function getAllKz(params) {
  return request({
    url: "/getAllKz",
    method: "get",
    params,
  });
}
// 删除客资
export function deleteOrder(params) {
  return request({
    url: "/deleteOrder",
    method: "get",
    params,
  });
}
// 新建客资
export function addKz(params) {
  return request({
    url: "/addKz",
    method: "get",
    params,
  });
}
// 修改客资
export function updateKz(params) {
  return request({
    url: "/updateKz",
    method: "get",
    params,
  });
}
// 根据条件查找客资
export function getKz(params) {
  return request({
    url: "/getKz",
    method: "get",
    params,
  });
}
// 删除客资
export function deleteKz(params) {
  return request({
    url: "/deleteKz",
    method: "get",
    params,
  });
}
// 插入某个用户的浏览客资记录
export function addViewHistory(params) {
  return request({
    url: "/addViewHistory",
    method: "get",
    params,
  });
}
// 获取某个用户的浏览客资记录
export function getViewHistory(params) {
  return request({
    url: "/getViewHistory",
    method: "get",
    params,
  });
}
// 删除某个用户的浏览客资记录
export function deleteKzViewHistory(params) {
  return request({
    url: "/deleteKzViewHistory",
    method: "get",
    params,
  });
}
// 添加客资操作日志
export function addOperationLog(params) {
  return request({
    url: "/addOperationLog",
    method: "get",
    params,
  });
}
// 查询客资操作日志
export function getKzOperationLog(params) {
  return request({
    url: "/getKzOperationLog",
    method: "get",
    params,
  });
}
// 查询素有渠道
export function getChannel(params) {
  return request({
    url: "/getChannel",
    method: "get",
    params,
  });
}
// 上传
export function upload_image(data) {
  return request({
    url: "/upload_image",
    method: "POST",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
// 查询客资日志
export function getKzChangeLog(params) {
  return request({
    url: "/getKzChangeLog",
    method: "get",
    params,
  });
}
// 查询客资跟踪记录
export function getKzTrackingLogApi(params) {
  return request({
    url: "/getKzTrackingLog",
    method: "get",
    params,
  });
}
// 新增订单
export function addNewOrder(params) {
  return request({
    url: "/newOrder",
    method: "get",
    params,
  });
}
